package neu.competition.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("MembershipType")
public class MembershipType {
    @TableId(value = "teamid", type = IdType.INPUT)
    int teamid;
    String userid;
    int membertype;

    @Override
    public String toString() {
        return "MembershipType{" +
                "teamid=" + teamid +
                ", userid='" + userid + '\'' +
                ", memberType=" + membertype +
                '}';
    }

    public int getTeamid() {
        return teamid;
    }

    public void setTeamid(int teamid) {
        this.teamid = teamid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public int getMemberType() {
        return membertype;
    }

    public void setMemberType(int memberType) {
        this.membertype = memberType;
    }
}
